package com.itheima.web.manager;


import com.itheima.domain.db.DataCount;
import com.itheima.service.db.AnalysisByDayService;
import com.itheima.vo.AnalysisSummaryVo;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public class AnalysisManager {

    @Reference
    private AnalysisByDayService analysisByDayService;

    //查询首页概要统计信息
    public AnalysisSummaryVo analysisSummary() {
        return analysisByDayService.analysisSummary();
    }

    //todo 数据统计
    public DataCount DateGather(Long startDate, Long endDate, Integer type) {
        return analysisByDayService.DateGather(startDate,endDate,type);
    }
}
